package com.hcms.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文章模块
 * </p>
 *
 * @author achenxw@126.com
 * @since 2023-03-31
 */
@Getter
@Setter
@TableName("cms_article")
@ApiModel(value = "CmsArticle对象", description = "文章模块")
public class CmsArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("栏目")
    private Long cateId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("来源")
    private String source;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("摘要")
    private String summary;

    @ApiModelProperty("图片")
    private String image;

    @ApiModelProperty("图片集")
    private String images;

    @ApiModelProperty("文件下载")
    private String download;

    @ApiModelProperty("TAG")
    private String tags;

    @ApiModelProperty("点击次数")
    private Integer hits;

    @ApiModelProperty("关键词")
    private String keywords;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("模板")
    private String template;

    @ApiModelProperty("跳转地址")
    private String url;

    @ApiModelProperty("阅读权限")
    private Integer viewAuth;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;


}
